@import "~libs/reset.css";
@import "~libs/variables.scss";

* {
  box-sizing: border-box;
  outline: none;
  text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
  word-break: break-all;
}

body {
  line-height: 1.47em;
  font-family: PingFangSC-Regular, "Hiragino Sans GB", "Microsoft Yahei", Arial,
    Lucida, Verdana, SimSun, Helvetica, sans-serif;
  font-size: 26px;
  color: #333;
  background: $background;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

i {
  font-style: normal;
}

//  components
.card {
  padding-left: 30px;
  border-radius: $border-radius;
  background: #fff;
}

.card-hd {
  padding: 20px 0;
  border-bottom: 1px solid $border-color; /*no*/
}

.card {
  .button-block {
    line-height: 88px;
  }
}

.row {
  position: relative;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid $border-color; /*no*/

  &:last-child {
    border: 0;
  }

  .error {
    position: absolute;
    top: 6px;
    left: 16px;
    font-size: 22px;
    color: $text-danger;
  }
}

.label {
  line-height: 112px;
}

.label-for {
  display: flex;
  justify-content: flex-end;
  flex: 1 0 auto;
  text-align: right;

  .input {
    width: 80%;
    text-align: right;
  }

  .radio {
    padding: 0 20px;

    &:last-child {
      padding-right: 0;
    }
  }
}

.upload {
  input {
    display: none;
  }
}

.upload-bd {
  display: flex;
  justify-content: space-between;
}

.upload-ft {
  color: #666;
  padding: 20px 0 40px 0;

  .tips-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    vertical-align: middle;
    background: url("~images/icon-tips.png") no-repeat;
    background-size: 100% 100%;
  }
}

.upload-item {
  flex: 0 0 auto;
  padding: 30px;
  width: 340px;
  text-align: center;
  background: #fff;
  border-radius: $border-radius;

  .preview {
    position: relative;
    overflow: hidden;
    height: 236px;
    margin-bottom: 30px;
    border-radius: $border-radius;
  }

  img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .text {
    color: #666;
  }

  .tips {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    line-height: 60px;
    font-size: 23px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1s;
  }

  &.selected {
    .preview {
      background: #fff;
    }

    .tips {
      opacity: 1;
      transform: translateY(0%);
    }
  }
}

.upload-item01 {
  .preview {
    background: url("~images/upload-placeholder01.png") no-repeat;
    background-size: 100% 100%;
  }
}

.upload-item02 {
  .preview {
    background: url("~images/upload-placeholder02.png") no-repeat;
    background-size: 100% 100%;
  }
}

.result {
  padding: 250px 0 160px 0;
  background: #fff url("~images/icon-wait.png") no-repeat center 100px;
  background-size: 130px 130px;
  text-align: center;
  font-size: 26px;
  border-radius: $border-radius;

  h2 {
    line-height: 50px;
    margin-bottom: 80px;
    font-size: 36px;
    font-weight: bold;
  }
}

.picture-tips {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 150;

  &.active {
    display: block;
  }

  .bd {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 702px;
    height: 1042px;
    background: url("~images/picture-tips.png") no-repeat;
    background-size: 100% 100%;
    transform: translate(-50%, -50%);
  }

  .picture-tips-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
  }
}

input[type="date"] {
  min-width: 300px;
  border: 1px solid red;
}

.video-js .vjs-big-play-button {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  font-size: 50px !important;
}

//  article
.article-intro-image {
  img {
    width: 100%;
    vertical-align: top;
  }
}

.article-bd {
  padding: 40px $gapHorizon 230px $gapHorizon;
}

.article-video {
  .video-js {
    width: 100%;
    height: 420px;
  }
  .audio-js {
    margin-bottom: 20px;
  }
}

.article-video-s {
  .video-js {
    width: 100%;
    height: 400px;
  }
}

.article-title {
  line-height: 70px;
  padding: 10px 0 10px 0;
  font-size: 48px;
  text-align: left;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  color: #999;

  .count {
    padding-left: 34px;
    background: url("~images/icon-eye.png") no-repeat left center;
    background-size: 26px 18px;
  }
}

//  misc
.misc-booking {
  .form-label {
      &-large {
          font-size: 32px;
          font-weight: bolder;
      }
  }

  .input-text {
    &-large {
      line-height: 80px!important;
      font-size: 42px;
    }
  }

  .input-text:focus {
      border-color: $border-color-primary;
  }
}